import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en'

// svg icon
import Icon from 'vue-svg-icon/Icon.vue'

// css reset
import 'normalize.css/normalize.css'
import '@/styles/index.scss'

// 路由拦截
import '@/permission.js'

// 使用svg
Vue.component('Icon', Icon)

// 支持传入参数 size 和 zIndex 来修改组件默认大小和弹框层级（默认2000）
Vue.use(ElementUI, { locale })

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
